﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010B3 RID: 4275
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneCastSkillMpUpdateScNotify : IMessage<SceneCastSkillMpUpdateScNotify>, IMessage, IEquatable<SceneCastSkillMpUpdateScNotify>, IDeepCloneable<SceneCastSkillMpUpdateScNotify>, IBufferMessage
	{
		// Token: 0x17003605 RID: 13829
		// (get) Token: 0x0600BF15 RID: 48917 RVA: 0x00203E55 File Offset: 0x00202055
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneCastSkillMpUpdateScNotify> Parser
		{
			get
			{
				return SceneCastSkillMpUpdateScNotify._parser;
			}
		}

		// Token: 0x17003606 RID: 13830
		// (get) Token: 0x0600BF16 RID: 48918 RVA: 0x00203E5C File Offset: 0x0020205C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneCastSkillMpUpdateScNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003607 RID: 13831
		// (get) Token: 0x0600BF17 RID: 48919 RVA: 0x00203E6E File Offset: 0x0020206E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneCastSkillMpUpdateScNotify.Descriptor;
			}
		}

		// Token: 0x0600BF18 RID: 48920 RVA: 0x00203E75 File Offset: 0x00202075
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillMpUpdateScNotify()
		{
		}

		// Token: 0x0600BF19 RID: 48921 RVA: 0x00203E7D File Offset: 0x0020207D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillMpUpdateScNotify(SceneCastSkillMpUpdateScNotify other) : this()
		{
			this.mp_ = other.mp_;
			this.castEntityId_ = other.castEntityId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BF1A RID: 48922 RVA: 0x00203EAE File Offset: 0x002020AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillMpUpdateScNotify Clone()
		{
			return new SceneCastSkillMpUpdateScNotify(this);
		}

		// Token: 0x17003608 RID: 13832
		// (get) Token: 0x0600BF1B RID: 48923 RVA: 0x00203EB6 File Offset: 0x002020B6
		// (set) Token: 0x0600BF1C RID: 48924 RVA: 0x00203EBE File Offset: 0x002020BE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Mp
		{
			get
			{
				return this.mp_;
			}
			set
			{
				this.mp_ = value;
			}
		}

		// Token: 0x17003609 RID: 13833
		// (get) Token: 0x0600BF1D RID: 48925 RVA: 0x00203EC7 File Offset: 0x002020C7
		// (set) Token: 0x0600BF1E RID: 48926 RVA: 0x00203ECF File Offset: 0x002020CF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CastEntityId
		{
			get
			{
				return this.castEntityId_;
			}
			set
			{
				this.castEntityId_ = value;
			}
		}

		// Token: 0x0600BF1F RID: 48927 RVA: 0x00203ED8 File Offset: 0x002020D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneCastSkillMpUpdateScNotify);
		}

		// Token: 0x0600BF20 RID: 48928 RVA: 0x00203EE6 File Offset: 0x002020E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneCastSkillMpUpdateScNotify other)
		{
			return other != null && (other == this || (this.Mp == other.Mp && this.CastEntityId == other.CastEntityId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BF21 RID: 48929 RVA: 0x00203F24 File Offset: 0x00202124
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Mp != 0U)
			{
				num ^= this.Mp.GetHashCode();
			}
			if (this.CastEntityId != 0U)
			{
				num ^= this.CastEntityId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BF22 RID: 48930 RVA: 0x00203F7C File Offset: 0x0020217C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BF23 RID: 48931 RVA: 0x00203F84 File Offset: 0x00202184
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BF24 RID: 48932 RVA: 0x00203F90 File Offset: 0x00202190
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CastEntityId != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.CastEntityId);
			}
			if (this.Mp != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.Mp);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BF25 RID: 48933 RVA: 0x00203FEC File Offset: 0x002021EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Mp != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Mp);
			}
			if (this.CastEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CastEntityId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BF26 RID: 48934 RVA: 0x00204044 File Offset: 0x00202244
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneCastSkillMpUpdateScNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Mp != 0U)
			{
				this.Mp = other.Mp;
			}
			if (other.CastEntityId != 0U)
			{
				this.CastEntityId = other.CastEntityId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BF27 RID: 48935 RVA: 0x00204094 File Offset: 0x00202294
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BF28 RID: 48936 RVA: 0x002040A0 File Offset: 0x002022A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 80U)
				{
					if (num != 112U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Mp = input.ReadUInt32();
					}
				}
				else
				{
					this.CastEntityId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004CFE RID: 19710
		private static readonly MessageParser<SceneCastSkillMpUpdateScNotify> _parser = new MessageParser<SceneCastSkillMpUpdateScNotify>(() => new SceneCastSkillMpUpdateScNotify());

		// Token: 0x04004CFF RID: 19711
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004D00 RID: 19712
		public const int MpFieldNumber = 14;

		// Token: 0x04004D01 RID: 19713
		private uint mp_;

		// Token: 0x04004D02 RID: 19714
		public const int CastEntityIdFieldNumber = 10;

		// Token: 0x04004D03 RID: 19715
		private uint castEntityId_;
	}
}
